<template>
	<view class="editor-icon" @tap="editor"><u-icon name="plus-circle-fill"></u-icon></view>
</template>

<script>
export default {
	props: ['sceneId', 'type'],
	methods: {
		/**
		 *  进入编辑
		 */
		editor: function () {
			if (this.type === 'course') {
				this.$Router.push({ name: 'courseTopic' })
				return
			}
			this.$Router.push({ name: 'editorTopic', query: { id: this.sceneId, type: this.type } })
		},
	},
}
</script>

<style scoped lang="stylus">
.editor-icon
	position fixed
	width 100rpx
	height 75rpx
	border-radius 50rpx 0 0 50rpx
	background white
	filter drop-shadow(0 0 2rpx gray)
	bottom 11vh
	right 0
	font-size 62rpx
	display flex
	justify-content center
	align-items center
	z-index 1
</style>
